<?php
$con = mysql_connect("localhost","root","root");
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }

mysql_select_db("comzs", $con);
$dateTime = date("Y-m-d",strtotime("-1 day"));

mysql_query("INSERT INTO comzs SELECT NULL,
  avatarUseData_Pirate,
  cur_Avatar,
  weaponUseData_PGM,
  sceneEnter_ShopMenuTUI,
  weaponUseData_RPG_7,
  weaponUseData_XM_1014,
  weaponUseData_Remington_870,
  sceneEnter_AvatarShopMenuTUI,
  totalTime,
  weaponUseData_LightSword,
  sceneEnter_Zombie3D_PowerStation,
  sceneEnter_EquipMenuTUI,
  curDay,
  weaponUseData_Chainsaw,
  iap_Buy_Count_1,
  avatarUseData_Marine,
  missionFailed_Day_17,
  cashSpendBullets,
  sceneEnter_UpgradeTUI,
  avatarUseData_Cowboy,
  avatarUseData_Swat,
  bulletsBuy_MP5_BuyBullet,
  avatarUseData_Human,
  cashLoot,
  dataTime,
  coopCount,
  avatarUseData_EnegyArmor,
  cashSpendWeapons,
  avatarUseData_Worker,
  weaponUseData_HellFire,
  weaponUseData_Gatling,
  iap_Buy_Count_4,
  iap_Buy_Count_5,
  avatarUseData_Doctor,
  sceneEnter_Zombie3D_Recycle,
  lastDayState,
  day_17_Failed,
  weaponOwner_0,
  weaponUseData_Winchester_1200,
  totalMoneyGet,
  weaponOwner_3,
  weaponOwner_4,
  weaponOwner_1,
  weaponOwner_2,
  iap_Buy_Count_0,
  cashCurrent,
  iap_Buy_Count_2,
  firstStatisticsTime,
  firstLogin,
  cur_Weapon_0,
  cur_Weapon_1,
  cur_Weapon_2,
  cashIap,
  avatarUseData_Nerd,
  weaponOwner_2_avatarUseData_Nerd,
  playTime,
  weaponUseData_M32,
  sceneEnter_NickNameTUI,
  avatarUseData_Pastor,
  weaponUseData_Laser,
  weaponUseData_AUG,
  avatarUseData_Eskimo,
  sceneEnter_StartMenuUI,
  iap_Buy_Count_3,
  sceneEnter_PaperJoyShowUI,
  avatarUseData_Ninja,
  appCount,
  weaponUseData_P90,
  sceneEnter_NetMapTUI,
  sceneEnter_RoomOwnerTUI,
  totalMoneyGet_sceneEnter_RoomOwnerTUI,
  weaponOwner_3_sceneEnter_RoomOwnerTUI,
  weaponOwner_4_sceneEnter_RoomOwnerTUI,
  weaponOwner_1_sceneEnter_RoomOwnerTUI,
  weaponOwner_2_sceneEnter_RoomOwnerTUI,
  iap_Buy_Count_0_sceneEnter_RoomOwnerTUI,
  cashCurrent_sceneEnter_RoomOwnerTUI,
  iap_Buy_Count_sceneEnter_RoomOwnerTUI,
  firstStatisticsTime_sceneEnter_RoomOwnerTUI,
  weaponUseData_AK_47,
  dayCount,
  weaponUseData_M4,
  achivmentCount,
  cashSpend,
  sceneEnter_MultiplayRoomTUI,
  sceneEnter_MainMapTUI,
  weaponUseData_MP5,
  isJailbreak,
  consumeContent0,
  consumeContent1,
  sceneEnter_Zombie3D_Village,
  sceneEnter_Zombie3D_Arena,
  bulletsBuy_Remington_870_BuyBullet,
  bulletsBuy_M4_BuyBullet,
  weaponUp_M4_Power,
  weaponOwner_5,
  sceneEnter_Zombie3D_Village2,
  weaponUseData_M4_sceneEnter_Zombie3D_Village2,
  weaponUp_AUG_Accuracy,
  sceneEnter_Zombie3D_ParkingLot,
  weaponUp_M4_Accuracy,
  bulletsBuy_AUG_BuyBullet,
  weaponUp_AUG_Frequency,
  weaponUp_M4_Frequency,
  bulletsBuy_Winchester_1200_BuyBullet,
  bulletsBuy_AK_47_BuyBullet,
  SceneEnter_Zombie3D_Hospital,
  WeaponUseData_ElectricGun,
  deviceid,
  gamename,
  createdate,
  date  FROM  comzs_query_temp");

mysql_close($con);
?>